This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
The usage of those calls made assumptions about processes and window parentage that are no longer the case with the Notes 8.x Standard Client.
In investigating the referenced SPR we had found that the usage of those APIs did not supply the expected hWnd (to the Windows API), and as such, the API did not work.
In the documentation, the hWnd is specified as needing to be from the application. Strictly speaking, this means that the hWnd needs to be from the same process (NLNOTES.EXE), and GetActiveWindow will obtain an hWnd from the Notes2.EXE process.
GetActiveWindow from user32.dll This is the problem. In Notes 8 Standard, this will get the top-level window in the Notes2 process. GetFocus should be used instead and supplied to TrackPopupMenuEx
TrackPopupMenuEx from user32.dll This API will fail when the window supplied is from a different process than NLNOTES.EXE By supplying GetActiveWindow to this API, the Windows API call will fail
Doug Conmy
Lotus Notes Lead Architect
Feedback response number DCOY7XQ3KX created by ~Dan Elwezenynds on 11/12/2009